<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="b" uri="/bbs-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'blogMessageBoard.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="css/footer.css">
		<link rel="stylesheet" type="text/css" href="css/blog_header.css">
		<link rel="stylesheet" type="text/css" href="css/blog_top_head.css">
		<link rel="stylesheet" type="text/css"
			href="css/blog_center_right.css">
		<link rel="stylesheet" type="text/css" href="css/blogRecord.css">
		<link rel="stylesheet" type="text/css" href="css/pageStyleOne.css">
		<script type="text/javascript" src="js/parseIcon.js">
</script>
		<script type="text/javascript" src="js/jquery.js">
</script>

		<script type="text/javascript">
function showEdit(id) {
	var s = ".enterMessage" + id
	$(s).css("display", "block");

}
function cancleWin(id) {
	var s = ".enterMessage" + id
	$(s).css("display", "none");
}
</script>
	</head>

	<body onload="parseIcon()">
		<div class="tbody">
			<%@ include file="styleJsp/blog_top_head.jsp"%>
			<div class="table">
				<%@ include file="styleJsp/blog_header.jsp"%>
				<div class="center">
					<div id="content">
						<div class="center_left">
							<div class="center_left_title">
								<b>记录</b>
							</div>
							<div class="center_left_context">
								<div class="center_left_context_form">
									<form action="publishSayAction" name="form1" method="post">
										<input type="hidden" name="userId"
											value="<s:property value='userId'/>" />
										<b:editTable height="100" width="740" />
										<span class="fabuImg"><input type="image"
												src="images/fabu.jpg" /> </span>
									</form>
								</div>
							</div>
							<div class="record_line"></div>
							<s:iterator value="list">
								<div class="record_contextMsg">
									<div class="record_fatherContextMsg">
										<div class="record_fatherContextMsgText">
											<span class="username"><a href="#"><s:property
														value="user.userName" /> </a> </span>
											<span class="record_fatherContextMsgContext"> <s:property
													value="sayContent" /> </span>
										</div>
										<div class="record_fatherContextMsgTime">
											<span><s:property
													value="sayDate.toString().substring(0,16)" /> </span>
										</div>
										<div class="record_fatherContextMsgCaozuo">
											<span><a
												onclick="showEdit(<s:property value='sayId'/>)">评论</a> <a
												href="deleteSayAction_deleteFatherSay?sayId=<s:property value='sayId'/>&userId=<s:property value='userId'/>">删除</a>
											</span>
										</div>
									</div>

									<div class="enterMessage<s:property value='sayId'/>"
										style="width: 500px; height: 155px; float: left; display: none; background: #E8F0F7;">
										<div
											style="width: 481px; height: 135px; background: white; margin: 10px 0 0 10px; display: inline; float: left;">
											<form action="replySayAction?sayId=${sayId}&userId=${userId}"
												name="form1" method="post">
												<b:editTable height="100" width="481" classId="${sayId}" />
												<p style="margin: 5px 0 0 0; float: left; display: inline;">
													<span style="float: left; diplay: inline"> <input
															type="image" src="images/replay.jpg"
															style="float: left; margin: 0 5px 0 0; display: inline" />
														<a onclick="cancleWin(<s:property value='sayId'/>)"
														style="background: url('images/cannel.jpg'); width: 68px; height: 23px; float: left; dispaly: inline"></a>
													</span>
												</p>
											</form>
										</div>
									</div>
									<s:iterator value="says">
										<div class="record_sonContextMsg">
											<div class="record_sonContextMsg_line"></div>
											<div class="record_sonContextMsgOne">
												<div class="record_sonContextMsgOneImg">
													<img src="files/<s:property value='user.userInfo.images'/>"
														style="width: 40; height: 40" />
												</div>
												<div class="record_sonContextMsgOneTest">
													<div class="record_sonContextMsgOneTestContext">
														<a href="#"><s:property value="user.userName" /> </a>
														<span><s:property value="sayContent" /> </span>
													</div>
													<div class="record_sonContextMsgOneTestTime">
														<span class="timeType"><s:property
																value="sayDate.toString().substring(0,16)" /> </span>
														<span> <a
															onclick="showEdit(<s:property value='sayId'/>)">回复</a> <a
															href="deleteSayAction_deleteSonSay?sayId=<s:property value='sayId'/>&userId=<s:property value='userId'/>">删除</a>
														</span>
													</div>
													<s:iterator value="says">
														<div class="record_sonContextMsgOneTest_line"></div>
														<div class="record_sonContextMsgOneTestTxt">
															<div class="record_sonContextMsgOneTestTxtImg">
																<img
																	src="files/<s:property value='user.userInfo.images'/>"
																	style="width: 40; height: 40" />
															</div>
															<div class="record_sonContextMsgOneTestTxt1">
																<div class="record_sonContextMsgOneTestTxt1text">
																	<span class="tousername"><a href="#"><s:property
																				value="user.userName" /> </a> </span>
																	<span class="saycontent"><s:property
																			value="sayContent" /> </span>
																</div>
																<div class="record_sonContextMsgOneTestTxt1time">
																	<span class="time1"><s:property
																			value="sayDate.toString().substring(0,16)" /> </span>
																	<span class="delete1"><a
																		href="deleteSayAction_deleteGrandsonSay?sayId=<s:property value='sayId'/>&userId=<s:property value='userId'/>">删除</a>
																	</span>
																</div>
															</div>
														</div>
													</s:iterator>

													<div class="enterMessage<s:property value='sayId'/>"
														style="width: 440px; height: 155px; float: left; display: none; background: #E8F0F7; border: solid 1px #CCCCCC; margin: 5px 0 0 0;">
														<div
															style="width: 415px; height: 135px; background: white; margin: 10px 0 0 10px; display: inline; float: left;">
															<form
																action="replySayAction?sayId=${sayId}&userId=${userId}"
																name="form1" method="post">
																<b:editTable height="100" width="410" classId="${sayId}" />
																<p
																	style="margin: 5px 0 0 0; float: left; display: inline;">
																	<span style="float: left; diplay: inline"> <input
																			type="image" src="images/replay.jpg"
																			style="float: left; margin: 0 5px 0 0; display: inline" />
																		<a onclick="cancleWin(<s:property value='sayId'/>)"
																		style="background: url('images/cannel.jpg'); width: 68px; height: 23px; float: left; dispaly: inline"></a>
																	</span>
																</p>
															</form>
														</div>
													</div>
												</div>
											</div>
										</div>
									</s:iterator>
								</div>
							</s:iterator>
							<div class="page_style_box">
								${pagination}
							</div>
						</div>
						<%@ include file="styleJsp/blog_center_right.jsp"%>
					</div>
				</div>
				<%@ include file="styleJsp/footer.jsp"%>
			</div>
		</div>
	</body>
</html>
